package com.mydesignpattern.beijing.responsibilitychain.simple;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by nevermore on 17/4/25.
 */
public class MsgProcessor {

    private String msg;

    private FilterChain filterChain;


    //处理方法
    public String processor(String msg){
        return filterChain.doFilter(msg);
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public FilterChain getFilterChain() {
        return filterChain;
    }

    public void setFilterChain(FilterChain filterChain) {
        this.filterChain = filterChain;
    }
}
